package com.java.basis.teststatic;

/**
 * @author wangning
 * @create 2021-07-14 9:36
 */
class Student {
	public static int i;
	int m;
	int n;

	public void show() {
		System.out.println("i = " + i);
	}
	public static void print() {
		System.out.println("i = " + i);
	}

	public static int getI() {
		return i;
	}

	public static void setI(int i) {
		Student.i = i;
	}

	public int getM() {
		return this.m;
	}

	public Student setM(int m) {
		this.m = m;
		return this;
	}

	public int getN() {
		return this.n;
	}

	public Student setN(int n) {
		this.n = n;
		return this;
	}
}
public class TestStatic02 {

	public static void main(String[] args) {
		Student student = new Student();
		student.show();
		Student.print();
		student.print();
		System.out.println(Student.i);
		student.setM(1).setN(2);

	}

}
